//
//  DropButton.h
//  SohoNaru
//
//  Created by PnP_WhiteMacBook on 13. 6. 7..
//  Copyright (c) 2013년 ladaka Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DropButonDelegate;
@interface DropButton : UIView {
    
    CGPoint _originalPoint;
    CGPoint _originalOutsidePoint;
    
    BOOL _isScrollEnable;
    //    UIButton *_btnRemove;
}
@property (assign, nonatomic) id<DropButonDelegate> delegate;
@property (strong, nonatomic) UIView *mainView;
@property (strong, nonatomic) UIScrollView *svParent;
@property (strong, nonatomic) UIImageView *ivImg;
@property (strong, nonatomic) UIImage *thumbNail;
@property (strong, nonatomic) NSString *imgPath;
@property (assign, nonatomic) NSInteger tag;
@property (strong, nonatomic) UIButton *btnRemove;
@property (strong, nonatomic) UIImageView *ivDropImg;


//- (id) initWithFrame:(CGRect)frame thumbNail:(UIImage *)thumbNail;
- (id) initWithFrame:(CGRect)frame thumbNail:(NSString *)path;
- (void) onClickDelete:(id)sender;
- (void) animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context;
@end


@protocol DropButonDelegate <NSObject>
- (void) didImageDelete:(DropButton *)sender;
- (void) didTouchDown:(DropButton *)sender;
- (void) didTouchUp:(DropButton *)sender;
- (BOOL) didViewInside:(UIImageView *)button imgPath:(NSString *)imgPath touching:(BOOL)isFinish;
@end

